package com.boer.filedemo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Boer
 * @since 2021-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MyFile implements Serializable {

    private static final long serialVersionUID=1L;

    //id 主键策略
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    //uuid
    private String uuid;

    //文件绝对路径
    private String path;

    //文件大小
    private String size;

    //文件类型
    private String type;

    //文件原名称
    private String name;

    //文件生成时间,自动生成,见utils包下 MyMetaObjectHander
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

}
